package com.nus.fellowmark.common.mongo.service;

import com.nus.fellowmark.common.mongo.model.LoadFile;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @author Ruoyi Chen
 * @email chenruoyisz@gmail.com
 * @create 2023/2/17
 */
public interface MongoFileService {

    String uploadFile(MultipartFile file);

    String uploadFileWithName(MultipartFile file, String test);

    LoadFile downloadFile(String id);

    Boolean deleteFile(String id);

    void downloadFilesAsZip(List<String> ids, HttpServletResponse response) throws IOException;
}
